<h1>Listing records</h1>

<table border="0" cellspacing="3" cellpadding="3">
  <tr>
		<th>Artist Name</th>
		<th>Name</th>
		<th>Release Type</th>
  </tr>
<% @records.each do |record| %>
	<tr>
		<td class="list_value">		
			<%= link_to record.artist_name, :controller => "artists", :action => "show", :id => record.artist_id %>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		</td>
		<td class="list_value"><%= link_to record.name, :action => "show", :id => record.id %></td>
		<td class="list_value"><%= record.release_type %></td>
    <td><%= link_to 'Show', record %>&nbsp;&nbsp;</td>
    <td><%= link_to 'Edit', edit_record_path(record) %>&nbsp;&nbsp;</td>
    <td><%= link_to 'Destroy', record, :confirm => 'Are you sure?', :method => :delete %>&nbsp;&nbsp;</td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New record', new_record_path %>